﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bonobo.Irc
{
    public sealed class IrcStyleUriParser : GenericUriParser
    {
        public const String SchemeName = "irc";

        public IrcStyleUriParser() 
            : base(GenericUriParserOptions.Default)
        {
        }

        internal static void Register()
        {
            if (!UriParser.IsKnownScheme(SchemeName))
            {
                UriParser.Register(new IrcStyleUriParser(), SchemeName, IrcProtocol.DefaultTcpPort);
            }
        }

        static IrcStyleUriParser()
        {
            Register();
        }
    }
}
